<template>
  <BasicLayout>

    <template #wrapper v-if="hasPerm === false">
      <el-form label-width="30px">
        <el-form-item>
          <img src="@/assets/warning.png" class="img-circle img-lg">
        </el-form-item>
        <el-form-item>
        <span>
        【权限不足】<br>
        批量创建API接口仅对累计充值满2000的客户开放<br><br>
      </span>
        </el-form-item>
      </el-form>
    </template>
  </BasicLayout>
</template>

<script>
  import {getAccount} from '@/api/tuser'
  import store from '@/store'

  export default {
    name: 'Api',
    components: {},
    data() {
      return {
        hasPerm: false,
      }
    },
    created() {
      this.getUserAccount()
    },
    methods: {
      /** 查询参数列表 */
      getUserAccount() {
        getAccount(parseInt(store.getters.userId)).then(response => {
          if (response.code === 200) {
          }
        })
      },
    }
  }
</script>
